<?php
session_start();
$uid = $_SESSION['uid'];
$id = $_GET['id'];
require_once 'classes/db.class.php';
include("mysql.config.php");

$db = new DataBase($db_address, $db_username, $db_password, $db_db);

$db->query("UPDATE `asks` SET `finished`='1' WHERE `id`='$id'") or die(mysql_error());

header("location:index.php");
?>
